<template>
  <div class="about">
      <div @click="num">123</div>
  </div>
</template>
<script>
export default {
 data(){
  return{
    id:""
  }
 },
 methods:{
  num(){
    console.log(this.$route.params.id);
  }
 },
 created(){
  this.id=this.$route.params.id
 }
}
</script>

<style scoped>

</style>
